/**
 * 
 */
package fr.fermeManager.application.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Mo
 *
 */
public class SessionManager {
	
	private Map<String, Object> map = new HashMap<String, Object>();

	public Object get(String nameParam) {
		if(map.containsKey(nameParam)) {
			return map.get(nameParam);
		}
		return null;
	}
	
	public void set(String nameParam,Object objectParam) {
		map.put(nameParam, objectParam);
	}
	
	public void remove(String nameParam) {
		map.remove(nameParam);
	}
	
	public void removeAll() {
		map = new HashMap<String, Object>();
	}
}
